﻿#ifndef _PROPMANAGER_H_
#define _PROPMANAGER_H_
#include <list>
using namespace std;
//敌机管理类
class Prop;//声明Prop类
class PropManager
{
public:
	void addProp(Prop* prop);//参数：要添加敌机的指针
	void collection(Prop* prop);//参数：要回收敌机的指针
	static PropManager* getInstance() {
		if (nullptr == pInstance)
		{
			pInstance = new PropManager();
		}
		return pInstance;
	}
	~PropManager();
	void clearList();	//清空集合
	int getPropListNumber() const {
		return propList.size();
	}
public:
	list<Prop*> propList;
private:
	static PropManager* pInstance;
	PropManager();

};
#endif // !_PROPMANAGER_H_



